{include file="inc/header.html"} 
<?php
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/baidumap.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['vstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/store.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/baidumap.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['vcpstorejs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/review.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/review_form.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/store.css";
$this->_var['vreviewcss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>
<script src="http://api.map.baidu.com/api?v=1.2" type="text/javascript"></script>
<script type="text/javascript" src="{function name="parse_script" v="$vstorejs" c="$vcpstorejs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$vreviewcss"}" />
<style>
	#ckepop .jiathis_txt{ font-weight:normal;font-family:"宋体"}
</style>
<script type="text/javascript">
	var is_order_show = false;
	var json_store_data = {$json_location_data};
	var store_id = "{$store_info.id}";
	var is_morder = 1;
	var takeaway = "{$store_info.takeaway}";
	var tkaway_price = "{$store_info.takeaway_price}";
	var tkaway_nums = "{$store_info.takeaway_nums}";
</script>
<div class="store_detail_box" >
	<div class="wrap">
				<div class="store_info_logo f_l">
					<img src="{$store_info.preview}" alt="{$store_info.name}" class="clearfix" />
					<div class="clearfix image_count">
						<div class="f_l">
						<span class="char_corr">◆</span>&nbsp;&nbsp;<a href="{if $store_info.image_count >0}{url x="store" r="photos"p="id=$store_info.id"}{else}javascript:;{/if}" class="blue">查看全部<b class="red">{$store_info.image_count}</b>张图片</a>
						</div>
					</div>
				</div>
				<div class="store_info_info f_r">
					 <b class="store_title_row">
					 	{$store_info.name}
						{if $store_info.takeaway_zk neq ""}<font class="icons izk" title="{$store_info.takeaway_zk}"></font>{/if}
						{if $store_info.takeaway_cx neq ""}<font class="icons icx" title="{$store_info.takeaway_cx}"></font>{/if}
					</b> 				
					 <div class="blank"></div>
				 	<div class="store_info_item clearfix">
				 		{if $store_info.brief}
						<div class="brief_box">
						<div class="brief clearfix" id="brief_small"><?php echo msubstr(strip_tags($this->_var['store_info']['brief']),0,90); ?>&nbsp;&nbsp;<a href="javascript:void(0);" class="act">展开简介>></a></div>
						<div class="brief brief_big clearfix" id="brief_big" style="display:none">{$store_info.brief}&nbsp;&nbsp;<a href="javascript:void(0);" class="act"><< 收起简介</a></div>
						</div>
						<div class="blank"></div>
						{/if}
				 		<div class="clearfix t_info">
							加盟 <b><?php echo (to_date(get_gmtime(),"d")-to_date($this->_var['store_info']['takeaway_time'],"d")) ?></b> 天
							&nbsp;&nbsp;&nbsp;&nbsp;
							评论 <b>{$store_info.dp_count}</b> 条
							&nbsp;&nbsp;&nbsp;&nbsp;
							好评 <b><?php echo round($this->_var['store_info']['good_rate']*100,1); ?>%</b>
							{if $store_info.is_verify eq 0}
							&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:void(0);" onclick="join_store('{url x="biz" r="join#step2" p="location_id=$store_info.id"}');" class="blue">认领该店</a>
							{/if}
						</div>
						<div class="clearfix point">
							总评 <span class="m_avg_point_{function name="intval" val="$store_info.avg_point"}" title="{function name="round" val="$store.avg_point" p="1"}分"></span>&nbsp;&nbsp;
							{foreach from=$store_info.group_point item=group}
							{$group.name} <span class="m_avg_point_{function name="intval" val="$group.avg_point"}" title="{function name="round" val="$group.avg_point" p="1"}分"></span>&nbsp;&nbsp;
							{/foreach}
						</div>
					</div>
					<div class="blank"></div>
					<div class="clearfix">
						<span class="grebtn f_l" style=" padding-right:10px;">
							<i class="green_line"></i>
							<strong class="grebtn_in">
								<a href="#ul-store-menu" class="grebtn_bg">立即点餐</a>
							</strong>
							<i class="green_line"></i>
						</span>
						<div class="f_l" style=" padding-top:4px;padding-right:10px;"><a href="#review_form" class="blue">发表点评</a></div>
						
						<div class="f_l" style="padding-top:6px; padding-right:10px;">
							<a href="javascript:;" onclick="store_send_form({$store_info.id});" id="store_send_sms" class="f_l store_sms blue" title="{function name="app_conf" value="SHOP_TITLE"}把地址、电话用短信免费发到你的手机，再也不怕找不到店哦，保证安全，请放心使用">免费发送到手机</a>
						</div>
						<div class="f_l" style="padding-top:6px;">
							<a href="javascript:void(0);" onclick="sign_location({$store_info.id});" class="blue store_sms" style="background:none;padding-left:0px;">签到</a>
						</div>
						
						
					</div>
				</div>
				<div class="blank1"></div>
				
		</div>
</div>
<div class="wrap clearfix">
		<div class="blank"></div>
		<div class="goods_detail_box f_l" style="margin:0px;width:720px;">				
				<ul class="detail_nav" id="ul-store-detail-nav">
					<li rel="ul-store-info" class="act">商户详情</li>
					{if $menu_count gt 0}
					<li rel="ul-store-menu">菜单</li>
					{/if}
					<li rel="ul-store-review" >餐厅点评</li>
				</ul>
				<div class="wb wbt">
					<ul id="ul-store-info" class="store-ul">
						<li class="act clearfix" id="store_info" style="padding:20px;">
							<div class="store_b_info_l f_l">
								<div class="jsForReport clearfix">
									<div class="box_r f_l">
										<h5>基本信息</h5>
										<div class="tag_info_item store_cate">
											<table border="0" cellpadding="2" cellspacing="1" class="store_info_tips_t">
												<tr>
													{if $store_info.takeaway_price gt 0}<td>起送价格</td>{/if}
													{if $store_info.takeaway_nums gt 0}<td>起送数量</td>{/if}
												</tr>
												<tr>
													{if $store_info.takeaway_price gt 0}<td>{function name="round" val="$store_info.takeaway_price" f="0"}元</td>{/if}
													{if $store_info.takeaway_nums gt 0}<td>{$store_info.takeaway_nums}份</td>{/if}
												</tr>
											</table>
									 	</div>
									</div>
									<div class="box_r f_r">
										{if $store_info.tel || $store_info.contact}
										<h5>免费订餐电话</h5>
										<div class="tag_info_item">
										{if $store_info.tel}
									 	{$store_info.tel}
										{/if}
										{if $store_info.contact}
									 	联系人：<span class="tel_blue">{$store_info.contact}</span>
										{/if}
										</div>
										{/if}
									</div>
							</div>
							<div class="blank"></div>
							<div class="jsForReport_line"></div>
							<div class="blank"></div>
							<div class="jsForReport">
								<h5>地理交通</h5>
								{if $store_info.address}
								<div class="tag_info_item store_address clearfix">
							 	地址：{$store_info.address}&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:void(0);" onclick="zoommap(json_store_data);">地图</a>
								</div>
								{/if}
								{if $store_info.route}
								<div class="tag_info_item store_bus clearfix">
									<div class="f_l tit"><span class="icons i012"></span>交通：</div>
									<div class="f_l box">{$store_info.route}</div>
								</div>
								{/if}
								{if $store_info.stop}
								<div class="tag_info_item store_stop clearfix">
									<div class="f_l tit"><span class="icons i013"></span>停车：</div>
									<div class="f_l box">{$store_info.stop}</div>
								</div>
								{/if}
							</div>
							
						</div>
						</li>				
					</ul>
					{if $menu_count gt 0}
					<ul id="ul-store-menu" class="store-ul" name="ul-store-menu">
						{$menu_html}
					</ul>
					{/if}
					<ul id="ul-store-review" class="store-ul p10">
						<div class="blank"></div>
						<div id="store_dp" name="store_dp">
							<script type="text/javascript">
								load_store_dp({$store_info.id},1,"","");
							</script>
						</div>
						<div class="blank"></div>
						<div id="review_form">
							{insert name="get_reivew_form" id="$store_info.id" deal_cate_id="$store_info.deal_cate_id"}
						</div>
					</ul>
				</div>
			</div>
		<div class="detail_left f_r">
			<div class="store-imp-box" id="FW-STORE-VIEW-IMP-BOX" dataid="{$store_info.id}"></div>
			<div class="blank"></div>	
		</div>			
</div>

<div class="fw-date-box abs" id="FW-DATE-BOX"></div>
<div id="choFloatBox" class="res_cho_fl_box vh" style="visibility: visible; ">
</div>
{include file="inc/footer.html"}